<?php
include_once("C_colorCalc.inc");



//---------------------------
kickOut("
	\$o = new ColorCalc();
	print \$o->dumpHtml();
");

//---------------------------
kickOut("
	\$ob = new ColorCalc();
	for( \$i=0; \$i<=100; \$i++) {
		print \"<div width=\\\"50%\\\" style=\\\"width:50%;height:3px;color:white;background-color:rgb(\" . \$ob->getRGBCalc(\$i) . \");\\\">&nbsp;</div>\";
	}
");






function kickOut($o) {
	print "<br /><hr />";

	print "<div style=\"border:dashed black 1px;padding: 4px;\">";
	print "<div>Example:</div>";
	print "<div style=\"border:solid red 1px;\">";
	print "<code><pre>".htmlentities($o)."</pre></code>";
	print "</div>";

	print "<div>Outputs:</div>";
	print "<div style=\"border:solid red 0px;\">";
	eval(html_entity_decode($o));
	print "</div>";

	print "</div>";
}
?>
